
// ##############################
// ####  note:  bokeweilai uart main fun
// ####  create:  TANWENHUI (twh:谭文辉)
// ####  date:   2024/6/18
// ##############################

#ifndef __BKWL_UART_H__
#define __BKWL_UART_H__
#include "bk_private/bk_init.h"
#include <components/system.h>
#include <os/os.h>
#include <components/shell_task.h>
#include "cli.h"
#include <stdio.h>
#include "bkwl_common.h"
// #include <hal_uart_types.h>

// X:\twh\work\bk7258\bk_avdk\bk_idk\components\tfm\tfm\platform\ext\target\beken\armino\include\driver\hal\hal_uart_types.h

extern bkwl_err_t bkwl_uart_init(int uart_id, uint32_t badurate);
extern bkwl_err_t bkwl_uart_write(int uart_id, uint8_t *send_data, uint32_t buf_len);
extern uint32_t bkwl_uart_read(int uart_id, uint8_t *send_data, uint32_t buf_len);
extern bkwl_err_t bkwl_uart_close(int uart_id);

extern int doorbell_uart2_init(void);
#endif
